#!/bin/bash

## Files
CONFIG="$HOME/.config/wofi/config-wl"
STYLE="$HOME/.config/wofi/style-wlp.css"
#COLORS="$HOME/.config/wofi/colors"

## Wofi Command
wofi_command="wofi --show dmenu \
			
			--conf ${CONFIG} --style ${STYLE} --color ${COLORS} \
			--width=300 --height=400 \
			--cache-file=/dev/null \
			--hide-scroll --no-actions \
			--define=matching=fuzzy"

menu(){
printf "1. Dark knight\n"
printf "2. Car night city\n"
printf "3. Magic anime girl\n"
printf "4. Lain\n"
printf "5. Totoro\n"
printf "6. Lonely girl\n"
printf "7. Stelle city\n"
printf "8. Somewhere\n"
printf "9. Contrast of soul\n"
printf "10. Rain night city\n"
printf "11. Fantasy deer\n"



printf "99. kill mpvpaper"
}

main() {
choice=$(menu | ${wofi_command} | cut -d. -f1)
case $choice in
1)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/the-last-dark-knight-moewalls-com.mp4
     ;;

2)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/nissan-skyline-r34-gt-r-at-night-city-need-for-speed.1920x1080.mp4
	;;

3)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/magic-anime-girl.1920x1080.mp4
	;;

4)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/serial-experiments-lain-moewalls-com.mp4

   ;;

5)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/totoro-on-top-of-a-tree.3840x2160.mp4

   ;;
   
6)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/lonely-girl.3840x2160.mp4
   
      ;;


7)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/stelle-city-top-view-honkai-star-rail-moewalls-com.mp4

   ;;


8)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/somewhere-to-go-moewalls-com.mp4

   ;;


9)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/contrast-of-souls.1920x1080.mp4

   ;;

10)
   mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/rainy-night-city.3840x2160.mp4

   ;;

11)
      mpvpaper | killall mpvpaper &&  mpvpaper -vs -o	"no-audio --loop-playlist shuffle" DP-1 /home/anime/Videos/wallpaper/fantasy-deer-monochrome-moewalls-com.mp4
   
      ;;

99) killall mpvpaper

 ;;
esac
}

main
